export default defineAppConfig({
  lazyCodeLoading: 'requiredComponents',
  pages: [
    'pages/home/index',
    'pages/user/index',
  ],
  subPackages: [
    {
      root: 'loginAndRegister',
      pages: [
        'login/index',
        'register/index',
      ],
    },
    {
      root: 'innerPages',
      pages: [
        'test/index',
        'material/index', //物资管理
        'material/add/index', //物资编辑
        'material/detail/index', //物资详情
        'family/index', //房屋选择列表
        'materialZone/index', //分区列表
        'materialZone/detail/index', //分区详情
        'familyMember/index', //家庭成员
        'clothMatch/index', //服装搭配
        'expireList/index', //代办事项
        'recommend/index', //推荐清单
        'editUserInfo/index'//修改用户信息
      ],
    },
  ],
  tabBar: {
    color: '#666',
    selectedColor: '#1677FF',
    list: [
      {
        pagePath: 'pages/home/index',
        text: '首页',
        iconPath: 'assets/images/home.png',
        selectedIconPath: 'assets/images/home_active.png',
      },
      {
        pagePath: 'pages/user/index',
        text: '我的',
        iconPath: 'assets/images/user.png',
        selectedIconPath: 'assets/images/user_active.png',
      },
    ],
  },
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: 'WeChat',
    navigationBarTextStyle: 'black'
  }
})
